projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c95a84
)
x11: Plug a memory leak
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 9 Jul 2020 17:52:53 +0000
(13:52 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 9 Jul 2020 17:52:53 +0000
(13:52 -0400)
Don't leak atoms when we're storing the clipboard.
gdk/x11/gdkclipboard-x11.c
patch
|
blob
|
history
diff --git
a/gdk/x11/gdkclipboard-x11.c
b/gdk/x11/gdkclipboard-x11.c
index bbfdfc6b4ba7cc71af168bd3a9323010cf4f1520..bd46f24a15640d7c8ed62a11ce67144a57ac6d6c 100644
(file)
--- a/
gdk/x11/gdkclipboard-x11.c
+++ b/
gdk/x11/gdkclipboard-x11.c
@@
-653,6
+653,8
@@
gdk_x11_clipboard_store_async (GdkClipboard *clipboard,
GDK_DISPLAY_NOTE (display, CLIPBOARD,
g_printerr ("%s: X error during ConvertSelection() while storing selection: %d\n", cb->selection, error));
}
+
+ g_free (atoms);
}
static gboolean